import unittest

if __name__ == '__main__':
    import sys
    import os
    currPath = os.path.dirname(__file__)
    parentPath = os.path.dirname(currPath)
    sys.path.append(parentPath)

def TestMain():
    """ 通过默认加载器 """
    import os
    suite = unittest.defaultTestLoader.discover(os.path.dirname(__file__))
    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(suite)

if __name__ == '__main__':
    TestMain()